package com.pro.service.imple;

import com.pro.mapper.JsUserReturnInreturnMapper;
import com.pro.pojo.JsUserOrder;
import com.pro.service.JsUserReturnInreturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsUserReturnInreturnServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/25 上午 11:53
 * @Author: WYH
 */
@Service
public class JsUserReturnInreturnServiceImple implements JsUserReturnInreturnService {

    @Autowired(required = false)
    private JsUserReturnInreturnMapper jsUserReturnInreturnMapper;

    @Override
    public List<JsUserOrder> getAllReGoo(String orderPaymentChannel, String orderSource) {
        List<JsUserOrder> allReGoo = jsUserReturnInreturnMapper.getAllReGoo(orderPaymentChannel, orderSource);
        return allReGoo;
    }

    @Override
    public int count(String orderPaymentChannel, String orderSource) {
        int count = jsUserReturnInreturnMapper.count(orderPaymentChannel, orderSource);
        return count;
    }

    @Override
    public Boolean delReGoo(Integer orderId) {
        Boolean aBoolean = jsUserReturnInreturnMapper.delReGoo(orderId);
        return aBoolean;
    }

}
